import Vue from 'vue'

/*一、VantUI组件按需加载*/
// 按需引入
import {
  Search,
  CouponCell, CouponList,Card ,Button ,Popup,
	NoticeBar,
	Toast,
	Dialog,
    Step,
    Steps,
    Swipe,
    Pagination,
    SwipeItem
} from 'vant'

// import 'vant/lib/vant-css/base.css';
// import 'vant/lib/vant-css/index.css';

const vantComponents = {
  Search,
  CouponCell,CouponList,Card ,Button ,Popup,
	NoticeBar,
	Toast,
	Dialog,
    Step,
    Steps,
    Swipe,
    Pagination,
    SwipeItem
}

Object.keys(vantComponents).forEach((key) => {
    Vue.use(vantComponents[key])
})

/*一、VuxUI组件按需加载*/
// 按需引入
//import {
//  Actionsheet,
//  Step,
//  StepItem,
//  Calendar,
//  Timeline,
//  TimelineItem,
//  PopupPicker 
//} from 'vux'
//
//const vuxComponents = {
//  'actionsheet': Actionsheet,
//  'step': Step,
//  'step-item': StepItem,
//  'calendar':Calendar,
//  'timeline':Timeline,
//  'timeline-item':TimelineItem,
//  'popup-picker':PopupPicker 
//}

//Object.keys(vuxComponents).forEach((key) => {
//  Vue.component(key, vuxComponents[key])
//})

// 解决组件自动弹出问题
// Vue.prototype.$loading = Loading.service
// Vue.prototype.$msgbox = MessageBox
// Vue.prototype.$alert = MessageBox.alert
// Vue.prototype.$confirm = MessageBox.confirm
// Vue.prototype.$prompt = MessageBox.prompt
// Vue.prototype.$notify = Notification
// Vue.prototype.$message = Message



/*二、引入Vue集成的第三方的js*/
// 百度的UEditor
// import UEditor from '@/components/UEditor.vue'
// Vue.component(`UEditor`, UEditor)


/*三、自定义通用组件按需加载*/
// import vmDataViewer from '@/components/FW-UI/vmDataViewer'
// Vue.use(vmDataViewer)

// import fwTreeGrid from '@/components/FW-UI/treeGrid'
// Vue.use(fwTreeGrid)








